import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)


const state = {
  is_ie9: false,
  screenWidth:document.body.clientWidth,
  screenHeight:document.body.clientHeight,
}

export default new Vuex.Store({
  state,
  mutations: {
    is_ie9(state,is_ie9){
      state.is_ie9 = is_ie9;
    },
    screenWidth(state,screenWidth) {
      state.screenWidth = screenWidth;
    },
    screenHeight(state,screenHeight) {
      state.screenHeight = screenHeight;
    }
  }
})
